import express from 'express' // 使用 ES 模块导入 express
import mockCommon from './common'

const app = express()
const PORT = 5000

app.use(express.json())

mockCommon(app) // 调用 mockCommon 函数，传入 app 实例

// 启动服务
app.listen(PORT, () => {
  console.log(`Mock server is running on http://localhost:${PORT}`)
})